<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
	<jsp:include page="${ctx }/WEB-INF/view/meta.jsp"></jsp:include>
	<script type="text/javascript" src="${ctx}/resource/js/user/password.js?r=${random}"></script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true">
	</div>
	
	<!-- Add Form -->
	<div id="add-dialog" class="easyui-dialog" style="width:400px; height:280px; padding:10px 20px" 
		data-options="closed:true, title:'修改密码', buttons:'#add-dialog-buttons'">
		<div class="ftitle">User Information</div>
		<form id="add-form" method="post" action="/admin/user/password" novalidate>
			<ul class="simple-ul">
				<li>
					<label>旧密码:</label>
	            	<input name="oldPwd" type="password" class="easyui-textbox" data-options="required:true">
				</li>
				<li>
					<label>新密码:</label>
	            	<input id="newPwd" name="newPwd" type="password" class="easyui-textbox" data-options="required:true">
				</li>
				<li>
					<label>确认密码:</label>
	            	<input name="rePwd" type="password" class="easyui-textbox" data-options="required:true" validType="equals['#newPwd']">
				</li>
	        </ul>
	    </form>
	</div>
	<div id="add-dialog-buttons">
		<a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="Password.update()" style="width:90px">Save</a>
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" 
    		onclick="javascript:$('#add-dialog').dialog('close')" style="width:90px">Cancel</a>
	</div>
</body>
</html>